package com.tulingxueyuan.order.config;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsPackage: com.tulingxueyuan.order.config
 * @Author: lidong
 * @CreateTime: 2025-03-06  22:24
 * @Description:配置Sentinel的切面, 使@SentinelResource注解生效
 * @Version: 1.0
 */
@Configuration
public class SentinelAspectConfiguration {
    @Bean
    public SentinelResourceAspect sentinelResourceAspect() {
        return new SentinelResourceAspect();
    }
}
